package com.wyp.exception;

import com.wyp.common.CodeMsg;

/**
 * 定义全局异常
 *
 * @author: Oliver
 */
public class GlobalException extends RuntimeException {
    private CodeMsg codeMsg;

    public GlobalException(CodeMsg codeMsg) {
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }

    public CodeMsg getCodeMsg() {
        return codeMsg;
    }
}
